home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / July 96 / Re ODF-Interest@CILabs.ORG < prev    next >
Encoding:
Internet Message Format  |  1996-07-25  |  1.2 KB  |  [TEXT/ttxt]

  1. Subject:     Re: ODF-Interest@CILabs.ORG
  2. Sent:        7/25/96 12:44 PM
  3. Received:    7/25/96 1:01 PM
  4. From:        Henri Lamiraux, lamiraux@apple.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. >I am writing a ODF part only for the Macintosh -
  9. >
  10. >Is there any way to make Mac Toolbox drawing calls (FrameRect, 
  11. >FillCRect...) to the graphics subsystem of ODF?
  12. >
  13. >Specifically, I want to call FillCRect() with a given PixPatHandle.
  14. >
  15. >If this isn't possible, would I have to create a shape to render with 
  16. >into a FW_CGraphicContext?  This would require translating a PixPatHandle 
  17. >into FW_CPattern.
  18. >Has anyone done this before?
  19. >Is there a better way?
  20.  
  21. The other way to do that is to create a FW_CPattern with your 
  22. PixPatHandle, use the FW_CPattern to create a FW_CStyle and use 
  23. FW_CRectShape::RenderRect.
  24.  
  25. ........................................................................
  26.  Henri Lamiraux                                      lamiraux@apple.com
  27.  Apple Computer, Inc.                 OpenDoc(tm) Development Framework
  28. ........................................................................
  29.  
  30.  
  31.